package com.hk.model;

import java.util.ArrayList;

import com.hk.dto.GsBoardDto;

public class GsBoardService {

	private static GsBoardService gsBoardService;
	private IGsBoardManager gsBoardManager;
	private GsBoardService(){
		gsBoardManager = new GsBoardManager();
	}
	public static GsBoardService getInstance(){
		if(gsBoardService==null){
			gsBoardService = new GsBoardService();
		}		
		return gsBoardService;
	}
	
	public ArrayList<GsBoardDto> getAllGsBoards(){
		return gsBoardManager.getAllGsBoards();
	}
	public boolean writeBoard(GsBoardDto gsdto){
		return gsBoardManager.writeBoard(gsdto);
	}
	public GsBoardDto getDetailBoard(String seq){
		return gsBoardManager.getDetailBoard(seq);
	}
	public boolean updateBoard(GsBoardDto udto){
		return gsBoardManager.updateBoard(udto);
	}
	public GsBoardDto getCustUser(String seq){
		return gsBoardManager.getCustUser(seq);
	}
	public boolean addReply(GsBoardDto rdto){
		return gsBoardManager.addReply(rdto);
	}
}
